package com.twu.biblioteca;

public class Book {
    private int bookId;
    private String bookName;
    private String author;
    private String publisher;
    private boolean available = true;

    public Book(int bookId, String bookName, String author, String publisher) {
        this.bookId = bookId;
        this.bookName = bookName;
        this.author = author;
        this.publisher = publisher;
    }

    public int getBookId() {
        return bookId;
    }

    public boolean isAvailable() {
        return available;
    }

    public void setAvailable(boolean available) {
        this.available = available;
    }

    @Override
    public String toString() {
        return bookId + ". " + bookName + " /" + author + " :" + publisher;
    }
}
